#include "mytoolbar.h"
#include <QHBoxLayout>
#include <QPushButton>
MyToolBar::MyToolBar(QWidget *parent)
    : QWidget(parent)
    , m_pBackBtn(nullptr)
    , m_pFlashBtn(nullptr)
{
    QHBoxLayout* pMainLayout = new QHBoxLayout(this);
    pMainLayout->setContentsMargins(0,0,0,0);
    m_pBackBtn = new QPushButton(this);
    m_pBackBtn->setIcon(QIcon(":/back.png"));
    m_pBackBtn->setFixedSize(30,30);
    m_pBackBtn->setIconSize(QSize(30,30));
    pMainLayout->addWidget(m_pBackBtn);
    pMainLayout->addStretch();
    setLayout(pMainLayout);
    setStyleSheet("background-color: red; color: red;");
}
